/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --parchment: #e8f4f8;
    --parchment-dark: #c8d8e4;
    --ink: #1a3a52;
    --gold: #6b9fc9;
    --gold-dark: #4a7ba3;
    --burgundy: #2d4a5e;
    --azure: #3b7ea1;
    --azure-light: #6ba3c9;
}

/* ========================================
   STYLES DE BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, var(--parchment) 0%, #d4e4f0 100%);
    color: var(--ink);
    line-height: 1.8;
    padding: 20px;
}

/* ========================================
   BOUTON RETOUR
   ======================================== */
.btn-retour {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--azure) 0%, var(--azure-light) 100%);
    color: white;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(59, 126, 161, 0.3);
    transition: all 0.3s ease;
}

.btn-retour:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(59, 126, 161, 0.5);
}

.btn-retour .arrow {
    font-size: 1.5rem;
    font-weight: bold;
}

.btn-retour .text {
    letter-spacing: 0.5px;
}

.btn-retour-bottom {
    position: relative;
    top: auto;
    left: auto;
    margin: 40px auto 20px;
    display: inline-flex;
    width: auto;
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px;
    box-shadow: 0 10px 50px rgba(26, 58, 82, 0.2);
    border: 3px solid var(--gold);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    text-align: center;
    border-bottom: 3px solid var(--azure);
    padding-bottom: 40px;
    margin-bottom: 50px;
    position: relative;
}

.header::after {
    content: '❄';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--azure-light);
    opacity: 0.3;
}

.header::before {
    content: '❄';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--azure-light);
    opacity: 0.3;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--azure);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(59, 126, 161, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--burgundy);
    font-style: italic;
    letter-spacing: 2px;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--azure);
    border-left: 6px solid var(--azure);
    padding-left: 20px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.subsection-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

/* ========================================
   CONTENU TEXTE
   ======================================== */
.content {
    font-size: 1.15rem;
    line-height: 2;
    text-align: justify;
    margin-bottom: 20px;
}

/* ========================================
   BOXES ET ENCADRÉS
   ======================================== */
.highlight-box {
    background: linear-gradient(135deg, rgba(107, 159, 201, 0.1) 0%, rgba(200, 216, 228, 0.15) 100%);
    border-left: 5px solid var(--azure);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box .title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--azure);
    margin-bottom: 15px;
}

.legend-box {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(232, 244, 248, 0.95) 100%);
    border: 3px solid var(--azure-light);
    padding: 35px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(59, 126, 161, 0.15);
}

/* ========================================
   GRILLE DE VALEURS
   ======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.value-card {
    background: linear-gradient(135deg, rgba(107, 159, 201, 0.08) 0%, rgba(200, 216, 228, 0.12) 100%);
    border: 2px solid var(--gold);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 126, 161, 0.2);
}

.value-card .icon {
    font-size: 2.5rem;
    color: var(--azure);
    margin-bottom: 10px;
}

.value-card .label {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--burgundy);
}

/* ========================================
   EMBLÈME
   ======================================== */
.emblem-description {
    background: rgba(107, 159, 201, 0.05);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.emblem-description p {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.emblem-description p::before {
    content: '🔷';
    position: absolute;
    left: 0;
    top: 0;
}

/* ========================================
   ÉTOILES
   ======================================== */
.stars-line {
    text-align: center;
    margin: 30px 0;
    font-size: 2rem;
}

.star-purple { 
    color: #9b4d96; 
}

.star-green { 
    color: #5a8f6a; 
}

.star-blue { 
    color: #3b7ea1; 
}

/* ========================================
   SÉPARATEUR
   ======================================== */
.divider {
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--azure), transparent);
    margin: 40px auto;
}

/* ========================================
   CITATIONS
   ======================================== */
.quote {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--azure);
    text-align: center;
    padding: 25px;
    margin: 30px 0;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

/* ========================================
   LISTES PERSONNALISÉES
   ======================================== */
ul.custom-list {
    list-style: none;
    padding-left: 0;
}

ul.custom-list li {
    padding-left: 35px;
    margin-bottom: 12px;
    position: relative;
}

ul.custom-list li::before {
    content: '❄';
    position: absolute;
    left: 0;
    color: var(--azure-light);
    font-size: 1.2rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 3px solid var(--azure);
    color: var(--burgundy);
    font-style: italic;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 30px 20px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .header::before,
    .header::after {
        display: none;
    }

    .content {
        font-size: 1.05rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .btn-retour {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 20px;
        display: inline-flex;
    }

    .btn-retour .text {
        font-size: 0.9rem;
    }
}